﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PingPongMain
{
    public abstract class GameObject : IRenderable
    {
        public Coords GameObjCoords { get; set; }
        public char GameObjSymbol { get; set; }
        public int Length { get; protected set; }
        public int Width { get; protected set; }

        public GameObject(Coords coords, char ch)
        {
            this.GameObjCoords = coords;
            this.GameObjSymbol = ch;
        }
        public GameObject()
        {
        }

        public void Draw()
        {
            for (int l = 0; l < this.Length; l++)
            {
                for (int w = 0; w < this.Width; w++)
                {
                    Console.SetCursorPosition(this.GameObjCoords.Col + w, this.GameObjCoords.Row + l);
                    Console.Write(this.GameObjSymbol);
                }
            }
        }
    }
}
